package com.ggb.reactive.repository

import com.ggb.reactive.domain.entity.DishFlavor
import org.springframework.data.r2dbc.repository.Modifying
import org.springframework.data.r2dbc.repository.Query
import org.springframework.data.repository.reactive.ReactiveCrudRepository
import org.springframework.stereotype.Repository
import reactor.core.publisher.Flux
import reactor.core.publisher.Mono

@Repository
interface DishFlavorRepository: ReactiveCrudRepository<DishFlavor, Long> {
    fun findDishFlavorByDishId(dishId:Long): Flux<DishFlavor>
    fun deleteDishFlavorByDishId(id: Long): Mono<Long>
    fun deleteAllByDishIdIn(ids: List<Long>): Mono<Void>
}